package com.bbx.taxi.client.Service;

import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.bbx.api.gclient.GMsg;
import com.bbx.api.gclient.GMsgBroadcastReceiver;
import com.bbx.api.gclient.Observer;
import com.bbx.api.sdk.SDK;
import com.bbx.api.sdk.model.base.BaseModel;
import com.bbx.api.sdk.model.passanger.Token;
import com.bbx.api.sdk.model.passanger.Return.Position;
import com.bbx.api.sdk.model.passanger.Return.Jmsg.Jmsg;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.util.SharedPreEncryptUtil;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
import com.bbx.taxi.client.Bean.Value;
import com.bbx.taxi.client.Bean.Message.MyMesssage;
import com.bbx.taxi.client.Bean.Message.Online;
import com.bbx.taxi.client.DB.JmsgDB;
import com.bbx.taxi.client.Util.DateFormat;
import com.bbx.taxi.client.config.Config;
import com.bbx.taxi.client.widget.Dailog.MyPhotoDailog;

import android.app.ActivityManager;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.drawable.Drawable;
import android.os.Binder;
import android.os.IBinder;

public class DialogService extends Service {
    public static Drawable result;
	@Override
	public void onCreate() {
		super.onCreate();
		
	}
	@Override
	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);
		MyPhotoDailog dialog=new MyPhotoDailog(this);
		try{
			dialog.setImage(result);
			 dialog.show();
		}catch(Exception e){}
		
		Value.need_fetch_pic="";
		stopService(new Intent(this,DialogService.class));
	}
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}

}
